import request from '@/utils/request'
/**
 * 文档注释
 * 登录
 * @param {*} loginForm
 * @returns
 */
export const loginAPI = (loginForm) => {
  return request({
    method: 'post',
    url: '/sys/login',
    data: loginForm
  })
}
/**
 * 获取用户基本信息id，给下面接口
 * @returns
 */
export const getUserProfileAPI = () => {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}
/**
 * 获取用户全部信息
 * @param {*} id
 * @returns
 */
export const getUserInfoAPI = (userId) => {
  return request({
    method: 'get',
    url: `/sys/user/${userId}`
  })
}
